package vns.shared;

import java.io.Serializable;
import java.util.Date;

import com.google.appengine.api.datastore.Key;

@SuppressWarnings("serial")
public class RuleSetDTO implements Serializable {
	private Key id;
	private String name;
	private int poriodictime;
	private Date begintime;
	private Date endtime;
	private String describe;
	private String actionKey;
	private String conditionExp;
	private String oTypeKey;
	private String ruleType;

	public RuleSetDTO() {
	}

	public RuleSetDTO(Key Id, String Name, int Poriodictime, Date Begintime,
			Date Endtime, String actionkey, String conditionExp,
			String otypekey, String ruletype, String Describe) {
		this();
		setinfo(Id, Name, Poriodictime, Begintime, Endtime, actionkey,
				conditionExp, otypekey, ruletype, Describe);
	}

	public RuleSetDTO(Key Id, String Name, int Poriodictime, Date Begintime,
			Date Endtime, String otypekey, String ruletype, String Describe) {
		this();
		setinfo(Id, Name, Poriodictime, Begintime, Endtime, null, null,
				otypekey, ruletype, Describe);
	}

	public void setinfo(Key Id, String Name, int Poriodictime, Date Begintime,
			Date Endtime, String actionkey, String conditionExp,
			String otypekey, String ruletype, String Describe) {
		this.id = Id;
		this.name = Name;
		this.poriodictime = Poriodictime;
		this.begintime = Begintime;
		this.endtime = Endtime;
		this.actionKey = actionkey;
		this.conditionExp = conditionExp;
		this.oTypeKey = otypekey;
		this.ruleType = ruletype;
		this.describe = Describe;
	}

	public Key getId() {
		return id;
	}

	public void setId(Key Id) {
		this.id = Id;
	}

	public String getName() {
		return name;
	}

	public void setName(String Name) {
		this.name = Name;
	}

	public int getPoriodicTime() {
		return poriodictime;
	}

	public void setPoriodicTime(int Poriodictime) {
		this.poriodictime = Poriodictime;
	}

	public Date getBeginTime() {
		return begintime;
	}

	public void setBeginTime(Date Begintime) {
		this.begintime = Begintime;
	}

	public Date getEndTime() {
		return endtime;
	}

	public void setEndTime(Date Endtime) {
		this.endtime = Endtime;
	}

	public String getDescribe() {
		return describe;
	}

	public void setDescribe(String Describe) {
		this.describe = Describe;
	}

	public void setActionKey(String actionKey) {
		this.actionKey = actionKey;
	}

	public String getActionKey() {
		return actionKey;
	}

	public void setConditionExp(String conditionExp) {
		this.conditionExp = conditionExp;
	}

	public String getConditionExp() {
		return conditionExp;
	}

	public void setoTypeKey(String oTypeKey) {
		this.oTypeKey = oTypeKey;
	}

	public String getoTypeKey() {
		return oTypeKey;
	}

	public void setRuleType(String ruleType) {
		this.ruleType = ruleType;
	}

	public String getRuleType() {
		return ruleType;
	}

}
